/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.asdtiang.study.aop;

import java.util.Date;

/**
 *
 * @author Administrator
 */
public class Logger{
    /** *//**
 7     * 根据等级记录日志
 8     * @param level
 9     * @param context
10     */
    public static void logging(Level level, String context) {
        if (level.equals(Level.INFO)) {
           System.out.println(level+":    "+new Date().getTime() + " " + context);
        }
       if (level.equals(Level.DEBUGE)) {
           System.err.println(level+":    "+new Date().getTime() + " " + context);
        }
   }

}
